package com.colin.distributelock.mapper;

import com.colin.distributelock.domain.DistributeLock;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* Created by Colin on 2020/8/31 19:27
* email: colinzhaodong@gmail.com
* desc: 
* @author zhaod
*/
@Mapper
public interface DistributeLockMapper {
    int deleteByPrimaryKey(String guid);

    int insert(DistributeLock record);

    int insertSelective(DistributeLock record);

    DistributeLock selectByPrimaryKey(String guid);

    int updateByPrimaryKeySelective(DistributeLock record);

    int updateByPrimaryKey(DistributeLock record);

    DistributeLock selectDistributeLock(@Param("businessCode")String businessCode);
}